package com.degisn;

import com.degisn.impl.CardCommodityService;
import com.degisn.impl.CouponCommodityService;
import com.degisn.impl.GoodsCommodityService;

/**
 * 奖品发放工厂
 * @author ytj
 * @date 2021/12/22
 */
public class CommodityFactory {
    public static ICommodity sendCommodity(Integer type){
        if(type==1){
            return new CardCommodityService();
        }
        if(type==2){
            return new CouponCommodityService();
        }
        if(type==3){
            return new GoodsCommodityService();
        }
        return null;
    }
}
